// 主页api

import request from "./request";

//获取推荐歌曲，默认30条
export const reqRecommendSongs = (limit) => request({ url: `/personalized?limit=${limit}`, method: 'GET' });

// 获取最新歌曲，默认10条
export const reqNewSongs = (limit) => request({ url: '/personalized/newsong', method: 'GET' });

//获取推荐歌单数据列表
export const reqRecommendSongsDetail = (id) => request({ url: `/playlist/detail?id=${id}`, method: 'GET' });

export const reqRecommendSongsCommit = (id) => request({ url: `/comment/playlist?id=${id}`, method: 'GET' });